<?php
/**
 * <pre>
 * <b>RUBIK IT Solution & Development ltd.</b>
 *
 * PROJECT		: HOTSWEETDATES
 * COPYRIGHT	: 2009
 * ------------------------------------------------------
 * 
 * [GENERAL INFO OF THIS FILE] 
 * 
 * </pre>
 * 
 * Created on	:  Webnesday, January 20, 2010
 * 
 * @author		ManTDM <mantdm@rubik.com.vn>
 * @access		[public/private]
 * @package	[package name]
 *
 */

defined ( '_FW_EXEC' ) or die ( 'Restricted access' );

RCoreImporter::cls( "html.fieldInfo.DateHtmlFieldInfo" );

class DateFromTimeStamp extends DateHtmlFieldInfo  {
	
	function buildHtmlPreviewData($extAttributes = '', $key=null, $dataType ='S') {
		
		$this->_value = date(SystemSite::getSiteConfig()->formatDateTimeView, $this->_value);
		
		return parent::buildHtmlPreviewData($extAttributes, $key, $dataType);
		
	}
}
?>